<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="fixed-table-toolbar">
                    <div class="columns pull-left">
                        <button class="btn btn-primary" onclick="add()" type="button">
                            <i aria-hidden="true" class="fa fa-plus"></i>添加
                        </button>
                        <!--                        <button class="btn  btn-danger" onclick="batchRemove()"-->
                        <!--                                type="button"><i aria-hidden="true" class="fa fa-trash"></i>删除-->
                        <!--                        </button>-->
                        <button class="btn  btn-danger" onclick="batchIn()"
                                type="button"><i aria-hidden="true" class="fa fa-plus"></i>批量导入
                        </button>
                    </div>
                    <div class="columns pull-right" role="group">
                        <button class="btn btn-success" onclick="reLoad()">
                            <i aria-hidden="true" class="fa fa-search"></i>查询
                        </button>
                    </div>

                    <div class="pull-right search col-md-2 nopadding">
                        <input class="form-control" id="address" placeholder="地址" type="text">
                    </div>

                    <div class="pull-right search col-md-2 nopadding">
                        <input class="form-control" id="name" placeholder="商户名" type="text">
                    </div>

                    <div class="pull-right search col-md-2 nopadding">
                        <input class="form-control" id="no" placeholder="商户编号" type="text">
                    </div>

                    <div class="columns pull-left col-md-1 nopadding">
                        <select class="form-control chosen-select" data-placeholder="归属平台" id="groupId" name="groupId"
                                tabindex="2">
                            <option value="" selected="selected">归属平台</option>
                            <option value="1">美团</option>
                            <option value="2">饿了么</option>
                        </select>
                    </div>

                    <div class="pull-left search nopadding" style="size: 30%">
                        <input class="laydate-icon form-control" id="startDate" name="startDate"
                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})" placeholder="注册开始时间"
                               readonly="readonly"
                               style="background-color: #fff;" th:value="${startDate}" type="text"/>
                    </div>

                    <div class="pull-left search nopadding" style="size: 30%">
                        <input class="laydate-icon form-control" id="endDate" name="endDate"
                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})" placeholder="注册结束时间"
                               readonly="readonly"
                               style="background-color: #fff;" th:value="${endDate}" type="text"/>
                    </div>
                </div>
                -->

            </div>
                <input id="definePrefix" th:value="${imgPrefix}" type="hidden">
                <table data-mobile-responsive="true" id="accountTable"></table>
            </div>
        </div>
    </div>

    <div>
        <script type="text/javascript">
            var s_edit_h = 'hidden';
            var s_showControl_h = false;
            var s_remove_h = 'hidden';
        </script>
    </div>
<div shiro:hasPermission="extra:takeoutShop:edit">
    <script type="text/javascript">
        s_edit_h = '';
    </script>
</div>
<div shiro:hasPermission="extra:takeoutShop:showControl">
    <script type="text/javascript">
        s_showControl_h = true;
    </script>
</div>
<div shiro:hasPermission="extra:takeoutShop:remove">
    <script type="text/javascript">
        var s_remove_h = '';
    </script>
</div>
</div>
<div th:include="include :: footer"></div>
<script src="/js/appjs/extra/takeoutShop/shop.js" type="text/javascript"></script>
</body>
</html>